<%@ page import="com.ws.lv.util.Res" %><%--
  Created by IntelliJ IDEA.
  User: Adminis
  Date: 2025/3/19
  Time: 11:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>修改后台用户信息</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/admin/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/admin/js/jquery-2.1.0.min.js"></script>
    <script src="${pageContext.request.contextPath}/admin/js/bootstrap.min.js"></script>
    <style>

        .cus-container{
            width: 1368px;
        }
        #user-add .modal-content{
            padding: 0 20px 20px;
        }
        #user-edit .modal-content{
            padding: 0 20px 20px;
        }
        .bc,.fh{
            color: rgba(2, 2, 2, 0.53);
            background: rgba(244, 244, 244, 0.54);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.62);
            transition: box-shadow 0.4s ease; /* 添加过渡效果 */
        }
        .bc:hover{
            border: 0;
            text-decoration: none;
            color: rgb(250, 133, 15);
            background: rgba(118, 255, 87, 0.44);
            box-shadow: 0 0 10px rgba(123, 255, 87, 0.63);
        }
        .fh:hover{
            border: 0;
            text-decoration: none;
            color: rgba(123, 255, 87, 0.89);
            background: rgba(250, 133, 15, 0.49);
            box-shadow: 0 0 10px rgba(250, 133, 15, 0.69);
        }
        .tx{
            width: 100px;
            height: 100px;
            border-radius: 50%;
        }

    </style>
</head>
<body>

<div class="container cus-container">
    <!-- 修改用户模态框 -->
    <h3 class="text-center">修改用户</h3>

    <form action="${pageContext.request.contextPath}/acl_user/updateAcl_user" method="post" enctype="multipart/form-data">
        <input type="hidden" name="user_id" value="${acl_user.user_id}">
        <input type="hidden" name="user_tx" value="${acl_user.user_tx}">
        <div class="form-group">
            <label for="username">用户名：</label>
            <input value="${acl_user.username}" type="text" class="form-control" name="username" id="username" placeholder="请输入用户名" required>
        </div>

        <div class="form-group">
            <label for="nickname">昵称：</label>
            <input value="${acl_user.nickname}" type="text" class="form-control" name="nickname" id="nickname" placeholder="请输入昵称" required>
        </div>

        <div class="form-group">
            <label for="image">头像：</label>
            <input type="file" class="form-control" name="image" id="image">
            <img src="<%=Res.adminTxFileUrl%>${acl_user.user_tx}" class="tx">
        </div>

        <div class="form-group">
            <label for="sid">所属商家:</label>
            <select class="form-control" name="sid" id="sid">
                <option value=""> -请选择所属商家- </option>
                <c:forEach items="${suppliers}" var="supplier">
                    <option value="${supplier.supplier_id}" ${supplier.supplier_id == acl_user.sid ? 'selected' : ''}>${supplier.supplier_name}</option>
                </c:forEach>
            </select>
        </div>


        <div class="text-center">
            <button type="submit" class="btn btn-primary btn-lg btn-block bc">保存</button>
            <a href="${pageContext.request.contextPath}/acl_user/selectAcl_users" class="btn btn-primary btn-lg btn-block fh">返回</a>
        </div>
    </form>
</div>

</body>
</html>